package com.example.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.model.entity.Course;
import com.example.model.dto.CourseRequest;

import java.util.List;

public interface CourseService extends IService<Course> {
    List<Course> listCourses();
    
    Course getCourseById(Integer id);
    
    Course addCourse(CourseRequest courseRequest);
    
    Course updateCourse(CourseRequest courseRequest);
    
    void deleteCourse(Integer id);

    List<Course> list();
}